package ru.spb.osll.myfit.fixtures;

import org.apache.log4j.Logger;

import ru.spb.osll.myfit.fixtures.base.OneLineFixture;

public class LogFixture extends OneLineFixture {
  public boolean logLines(int count) throws Throwable {
    try {
    Logger log = Logger.getLogger(getClass());
    for(int i = 0; i < count; i++) {
      log.info("Writing some text to the log to test myfit test result view performance. Log line number " + i);
    }
    } catch(Throwable e) {
      e.printStackTrace();
      throw e;
    }
    return true;
  }
  
  public static String[] getTestTableTemplates() {
    return new String[] {"|Log|1000|lines|"};
  }
}
